#include "mainwindow.h"
#include "ui_gameRules.h"
#include "game.h"
#include "gamerules.h"

GameRules::GameRules(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::GameRules)
{
    ui->setupUi(this);
    //固定大小0
    setFixedSize(1200,800);
    //设置图标
    setWindowIcon(QIcon(":/res/typing.ico"));
    setWindowTitle("Game Rules");
}

GameRules::~GameRules()
{
    delete ui;
}
void GameRules::on_pushButton_clicked()
{
    MainWindow *now=new MainWindow;
    this->hide();
    now->show();
}
